package com.fh.shop.api.util;

public class KeyUtil {

    public static String buildSMSKey(String phone) {
        return "sms:code:"+phone;
    }

    public static String buildMemberKey(Long id) {
        return "login:member:"+id;
    }

    public static String buildActiveMemberKey(String uuid) {
        return "active:member:"+uuid;
    }

    public static String buildCartKey(Long memberId) {
        return "cart:member:"+memberId;
    }


    public static String buildRecipientKey(Long id) {
        return "member:"+id+":recipient:list";
    }

    public static String buildTokenKey(String uuid) {
        return "token:uuid:"+uuid;
    }
}
